# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=fcitx5-nord
pkgver=0.0.0.20210727
_commit=bdaa8fb723b8d0b22f237c9a60195c5f9c9d74d1
pkgrel=1
pkgdesc="Fcitx5 theme based on Nord color"
arch=('any')
url="https://github.com/tonyfettes/fcitx5-nord"
license=('MIT')
conflicts=('fcitx5-nord-dark')
provides=('fcitx5-nord-dark')
replaces=('fcitx5-nord-dark')
source=("https://github.com/tonyfettes/fcitx5-nord/archive/$_commit/$pkgname-$_commit.tar.gz")
sha512sums=('c67d8ba53c9ce12b935140f6124e75c38a71221d94ea02ce6cf2ace69185b3c0ca541f03bed48a6bc970f1b7c23b7a60ec3ebdba376e92e1c7a640fbf74dda84')

package() {
  cd fcitx5-nord-$_commit
  install -dm755 "$pkgdir"/usr/share/fcitx5/themes/
  cp -r Nord-Dark Nord-Light "$pkgdir"/usr/share/fcitx5/themes/
  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
